package com.dingup.mock.enums;

/**
 * Created by yanggavin on 29/10/2016.
 */
public enum ExamRecordTypeEnum {
    NORMAL("NORMAL", "正常记录"),
    EXPIRED("EXPIRED", "过期失效");

    private final String code;
    private final String des;

    ExamRecordTypeEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }
    public String getDes() {
        return des;
    }
    public static Boolean contains(String name){
        for (ExamRecordTypeEnum e : values()){
            if (e.name().equals(name)){
                return true;
            }
        }
        return false;
    }
}
